package com.lzh.mybatisdemo.entity;

import lombok.Data;

import java.util.List;

@Data
public class Menu {
    //id
    private String id;

    //菜单名
    private String name;

    //父节点id
    private String pid;

    //子节点信息
    private List<Menu> children;

    //无参构造
    public Menu() {
    }

    //带参构造
    public Menu(String id, String name, String pid) {
        this.id = id;
        this.name = name;
        this.pid = pid;
    }
}
